package cate.common.table.activity.throne;


import cate.common.table.ESheet;
import easy.java.dev.note.NoteClass;

@NoteClass("淘汰赛排行奖励")
public class TBKoRankSheet extends ESheet<TBKoRankRow> {

    @Override
    public String getSheetName() {
        return "淘汰赛排行奖励";
    }

    @Override
    protected TBKoRankRow buildRow() {
        return new TBKoRankRow();
    }


    public TBKoRankRow findRwd(int groupType, int levelGroup, int rank) {
        for (TBKoRankRow row : this.getList()) {
            if (row.groupType == groupType && levelGroup == row.levelGroup && rank >= row.rankBeg && rank <= row.rankEnd) {
                return row;
            }
        }
        return null;
    }

}
